package com.drcoffee.drcoffeemall.mapper;

import com.drcoffee.drcoffeemall.entry.FAQ;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface FAQMapper {

    List<FAQ> getFAQ(String language, Integer machine_id, String search);

    List<FAQ> getFaqAll();

    boolean updateFaq(FAQ faq);

    List<FAQ> getFAQBySearch(String language, String search);

    boolean addFAQ(FAQ faq);

    boolean deleteFAQ(Integer id);
}
